﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;

using ProjectBase.Core;
using ProjectBase.Core.Dao;
using ProjectBase.Data.Db;

namespace $safeprojectname$.Sessions
{
    public static class DbSimpleSession
    {
        #region members
        static IDbRequestSession _simpleSession;
        #endregion members

        #region init & dispose
        public static void Initialize()
        {
            if (_simpleSession.IsNull())
            {
                _simpleSession = new SimpleSessionStorage();

                DbSession.Initialize(_simpleSession);
            }
            else
            {
                DbSession.Clear();
            }
        }
        #endregion init & dispose
    }
}